﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Things.Web.GoodsDescription
{
    public partial class Show : Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    Guid GoodsID = new Guid(strid);
                    ShowInfo(GoodsID);
                }
            }
        }

        private void ShowInfo(Guid GoodsID)
        {
            Things.BLL.GoodsDescription bll = new Things.BLL.GoodsDescription();
            Things.Model.GoodsDescription model = bll.GetModel(GoodsID);
            this.lblGoodsID.Text = model.GoodsID.ToString();
            this.litGoodsDescriptions.Text = model.GoodsDescriptions;

        }


    }
}
